<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/jquery-1.12.3.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<form>
			<input type="text" name="username" id="" value="admin" class="username"/>
			<input type="password" name="password" value="123456" class="mima"/>
			<input type="button" name="password" value="登录" class="login"/>
		</form>
	</body>
</html>
<script type="text/javascript">
	$(function(){
		$(".login").click(function(){
			$.ajax({
   				type: "POST",
   				url: "http://10.1.6.21:1218/api/account/SignIn",
   				data: {
   						username:$(".username").val(),
   						password:$(".mima").val()
   					  },
   				success: function(){
   					window.location.href = "index.html";
   				},
   				error:function(xhr){
   					console.log(xhr.status);
   				}
			});
		})
	})
</script>
